<?php
/*
 * @开发工具: JetBrains PhpStorm.
 * @文件名：LoginController.class.php
 * @类功能: 首页
 * @开发者: zc
 * @开发时间： 15-10-22
 * @版本：version 1.0
 */
namespace app\admin\controller;

use app\common\cache\admin\IAdminCache;
use app\common\cache\total\ITotalCompanyCache;
use app\common\cache\total\ITotalPayCache;
use app\common\cache\total\ITotalUserCache;
use app\common\controller\AdminBaseController;
use app\common\enum\HtmlEnumValue;
use app\common\ext\IHomeTotal;
use app\common\ext\IDb;
use think\Cache;

class Index extends AdminBaseController {

    /**
     * @功能：首页
     * @开发者：zc
     */
    public function index(){
        //取得管理员信息
        $admin_info = IAdminCache::getInfo(get_login_admin_id());

        //设置layout
        $this->layout("layout_menu_one");

        //获取画面
        $this->assign('admin_info',$admin_info);
        $this->assign('company',IHomeTotal::getUserApplyNumList());
        $this->assign('province',IHomeTotal::getProvinceList());
        $this->json('user_apply',IHomeTotal::getUserApplyList());
        $this->json('user_customer',IHomeTotal::getUserCustomerConList());
        $this->json('pool_bid_customer',IHomeTotal::getPoolBidList());

        //渲染模板输出
        return view();
    }
}